package com.house.common;

import com.house.context.SpringContextKit;

import java.util.UUID;

public class IdBuilder {
    public static String getUUID() {
        return UUID.randomUUID().toString().replaceAll("-", "").toUpperCase();
    }

    public static long getSnowId(){
        return ((SnowFlake)SpringContextKit.getBean("snowFlake")).nextId();
    }
    public static String getStringSnowId(){
        return String.valueOf(getSnowId());
    }
}
